#设置cmake最低版本
cmake_minimum_required(VERSION 3.12)

#设置项目名称
project(tst_qtremoteobjects_auto_proxy_multiprocess)



#引入add_module模板文件
include(${ISSQTTESTROOTDIR}/cmake/add_module.cmake)

#设置测试类型，auto为自动测试，manual为手动测试,即test目录下的文件夹名
set(TEST_TYPE auto)
#设置模块名
set(MODULE qtremoteobjects)
#设置需要链接的模块
set(LinkQt Core Widgets RemoteObjects)
#设置需要链接的模块的私有模块
set(LinkQtPrivate Core RemoteObjects)
#设置排除的文件夹
set(EXCLUDE domain qml-qtquicktest)

add_headers(proxy_multiprocess/shared.h)
add_headers(proxy_multiprocess/namespace.h)
add_subdirectory(client)
add_subdirectory(server)
add_subdirectory(proxy)

#多级目录
 set(TEST_ITEMS ${TEST_ITEMS}
    proxy_multiprocess/tst
 )


message(Qt${QT_VERSION_MAJOR}RemoteObjectsPrivate_DIR=${Qt${QT_VERSION_MAJOR}RemoteObjectsPrivate_DIR})

if(DEFINED Qt${QT_VERSION_MAJOR}RemoteObjectsPrivate_DIR AND NOT "${Qt${QT_VERSION_MAJOR}RemoteObjectsPrivate_DIR}" STREQUAL "")
    # Private Test
    list(APPEND TEST_ITEMS
        qRemoteObjectsinfoprivate
    )
else()
    # set(EXCLUDE_SRC ${EXCLUDE_SRC}
    #      core/common/qbackendnodetester.cpp
    #      core/common/qbackendnodetester.h
    #  )
endif()
set(PLUGINS QOpenHarmonyPlatformIntegrationPlugin)
# #整合测试项，生成测试库，名字当前工程名，即project(tst_qtcharts_auto)中定义的tst_qtcharts_auto
if(DEFINED TEST_ITEMS)
    create_library(${TEST_ITEMS})
endif()

